home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / satchel / nsIFormFillController.h next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  106 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFormFillController.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFormFillController_h__
  6. #define __gen_nsIFormFillController_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDocShell; /* forward declaration */
  18.  
  19. class nsIAutoCompletePopup; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIFormFillController */
  23. #define NS_IFORMFILLCONTROLLER_IID_STR "872f07f3-ed11-47c6-b7cf-246db53379fb"
  24.  
  25. #define NS_IFORMFILLCONTROLLER_IID \
  26.   {0x872f07f3, 0xed11, 0x47c6, \
  27.     { 0xb7, 0xcf, 0x24, 0x6d, 0xb5, 0x33, 0x79, 0xfb }}
  28.  
  29. class NS_NO_VTABLE nsIFormFillController : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFORMFILLCONTROLLER_IID)
  33.  
  34.   /* void attachToBrowser (in nsIDocShell docShell, in nsIAutoCompletePopup popup); */
  35.   NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup) = 0;
  36.  
  37.   /* void detachFromBrowser (in nsIDocShell docShell); */
  38.   NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell) = 0;
  39.  
  40. };
  41.  
  42. /* Use this macro when declaring classes that implement this interface. */
  43. #define NS_DECL_NSIFORMFILLCONTROLLER \
  44.   NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup); \
  45.   NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSIFORMFILLCONTROLLER(_to) \
  49.   NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup) { return _to AttachToBrowser(docShell, popup); } \
  50.   NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell) { return _to DetachFromBrowser(docShell); } 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSIFORMFILLCONTROLLER(_to) \
  54.   NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup) { return !_to ? NS_ERROR_NULL_POINTER : _to->AttachToBrowser(docShell, popup); } \
  55.   NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachFromBrowser(docShell); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsFormFillController : public nsIFormFillController
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSIFORMFILLCONTROLLER
  66.  
  67.   nsFormFillController();
  68.  
  69. private:
  70.   ~nsFormFillController();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsFormFillController, nsIFormFillController)
  78.  
  79. nsFormFillController::nsFormFillController()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsFormFillController::~nsFormFillController()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void attachToBrowser (in nsIDocShell docShell, in nsIAutoCompletePopup popup); */
  90. NS_IMETHODIMP nsFormFillController::AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* void detachFromBrowser (in nsIDocShell docShell); */
  96. NS_IMETHODIMP nsFormFillController::DetachFromBrowser(nsIDocShell *docShell)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* End of implementation class template. */
  102. #endif
  103.  
  104.  
  105. #endif /* __gen_nsIFormFillController_h__ */
  106.